<!-- 头部 -->
<include file="Public:header" />

        <div class="index-wrapper" style="padding-top: 40px;">
            <div style="background: #fff;">
                <div style="height: 50px;border-bottom: 2px solid #FF8711;text-align: center;">
                    <a href="{:U('index/xm',array('id'=>$xm_info['id']))}" style="line-height: 50px;font-size: 16px;">项目详情</a>
                    <a href="{:U('index/record',array('id'=>$xm_info['id']))}" style="padding-left: 40px;line-height: 50px;font-size: 16px;">捐赠记录</a>
                    <!-- <a href="{:U('index/msg',array('id'=>$xm_info['id']))}" style="padding-left: 40px;line-height: 50px;font-size: 18px;">爱心留言</a> --> 
                    <a href="{:U('index/problems',['id'=>$xm_info['id']])}" style="padding-left: 40px;line-height: 50px;font-size: 16px;color:#FF8711;">常见问题</a>
                </div>
            </div>

            <div class="product-list" style="background: #fff;padding: 10px;margin: 0px;">
            <?php foreach ($probs as $v) { ?>
                <a style="width: 100%;border-bottom: 1px solid #dbd0d0;">
                    <div>
                        <p style="font-size: 16px;font-weight: bold;">问：{$v.title}</p>
                        <p style="font-size: 15px;color: #A4A4A4;padding: 10px 1px;">答：
                            <textarea name="" id="" cols="20" rows="8" style="color: #A4A4A4;width: 100%;border: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;{$v.content}</textarea>
                        </p>
                    </div>
                </a>
            <?php } ?>
            </div>
            
            <div class="tabbar-section">
                <ul id="J-tabbar" class="ui-flex tabbar-content">
                    <?php if (empty($_SESSION['name'])) { ?>
                    <li class="cell J-other">
                        <a class="tabbar-nav" href="{:U('user/login')}">
                            <span style="width: 80%;">发起一起捐</span>
                        </a>
                    </li>
                    <?php }else { ?>
                    <li class="cell J-other">
                        <?php if (empty($checkfq)) { ?>
                            <a class="tabbar-nav" href="{:U('faqi/one',array('xm_id'=>$xm_info['id']))}">
                                <span style="width: 80%;">发起一起捐</span>
                            </a>
                        <?php }else { ?>
                            <a class="tabbar-nav" href="{:U('user/fqj')}">
                                <span style="width: 80%;">发起列表</span>
                            </a>
                        <?php } ?>
                    </li>   
                    <?php } ?>
                    <li class="cell J-other" >
                        <a class="tabbar-nav" href="{:U('index/jw',array('xm_id'=>$xm_info['id']))}" style="background: #FF8711;">
                            <span style="width: 80%;color: #fff;">我要捐赠</span>
                        </a>
                    </li>
                </ul>
            </div>  
        </div>
    </body>
</html>